from PyQt5.QtGui import QPixmap, QPainter, QColor
from PyQt5.QtCore import Qt

def createCheckerboardPixmap(width, height):
    pixmap = QPixmap(width, height)
    pixmap.fill(Qt.transparent)

    painter = QPainter(pixmap)
    painter.setRenderHint(QPainter.Antialiasing, True)

    # Define the size and color of the checkerboard squares
    square_size = 20
    light_color = QColor(255, 255, 255, 100)
    dark_color = QColor(0, 0, 0, 100)

    for i in range(0, width, square_size):
        for j in range(0, height, square_size):
            # Alternate between light and dark colors to create the checkerboard pattern
            color = light_color if (i // square_size + j // square_size) % 2 == 0 else dark_color
            painter.fillRect(i, j, square_size, square_size, color)

    painter.end()

    return pixmap
